package module

type BlogHeaderModel struct {
	XWpTotal      string `header:"x-wp-total"`
	XWpTotalpages string `header:"x-wp-totalpages"`
}

// BlogPostsModel 文章信息数据模型
type BlogPostsModel []struct {
	ID            int           `json:"id"`
	Date          string        `json:"date"`
	DateGmt       string        `json:"date_gmt"`
	GUID          GUID          `json:"guid"`
	Modified      string        `json:"modified"`
	ModifiedGmt   string        `json:"modified_gmt"`
	Slug          string        `json:"slug"`
	Status        string        `json:"status"`
	Type          string        `json:"type"`
	Link          string        `json:"link"`
	Title         Title         `json:"title"`
	Content       Content       `json:"content"`
	Excerpt       Excerpt       `json:"excerpt"`
	Author        int           `json:"author"`
	FeaturedMedia int           `json:"featured_media"`
	CommentStatus string        `json:"comment_status"`
	PingStatus    string        `json:"ping_status"`
	Sticky        bool          `json:"sticky"`
	Template      string        `json:"template"`
	Format        string        `json:"format"`
	Meta          []interface{} `json:"meta"`
	Categories    []int         `json:"categories"`
	Tags          []interface{} `json:"tags"`
	Links         Links         `json:"_links"`
}

type GUID struct {
	Rendered string `json:"rendered"`
}

type Title struct {
	Rendered string `json:"rendered"`
}

type Content struct {
	Rendered  string `json:"rendered"`
	Protected bool   `json:"protected"`
}

type Excerpt struct {
	Rendered  string `json:"rendered"`
	Protected bool   `json:"protected"`
}

type Self struct {
	Href string `json:"href"`
}

type Collection struct {
	Href string `json:"href"`
}

type About struct {
	Href string `json:"href"`
}

type Author struct {
	Embeddable bool   `json:"embeddable"`
	Href       string `json:"href"`
}

type Replies struct {
	Embeddable bool   `json:"embeddable"`
	Href       string `json:"href"`
}

type VersionHistory struct {
	Count int    `json:"count"`
	Href  string `json:"href"`
}

type PredecessorVersion struct {
	ID   int    `json:"id"`
	Href string `json:"href"`
}

type WpAttachment struct {
	Href string `json:"href"`
}

type WpTerm struct {
	Taxonomy   string `json:"taxonomy"`
	Embeddable bool   `json:"embeddable"`
	Href       string `json:"href"`
}

type Curies struct {
	Name      string `json:"name"`
	Href      string `json:"href"`
	Templated bool   `json:"templated"`
}

type Links struct {
	Self               []Self               `json:"self"`
	Collection         []Collection         `json:"collection"`
	About              []About              `json:"about"`
	Author             []Author             `json:"author"`
	Replies            []Replies            `json:"replies"`
	VersionHistory     []VersionHistory     `json:"version-history"`
	PredecessorVersion []PredecessorVersion `json:"predecessor-version"`
	WpAttachment       []WpAttachment       `json:"wp:attachment"`
	WpTerm             []WpTerm             `json:"wp:term"`
	Curies             []Curies             `json:"curies"`
}
